import request from '@/utils/request'

// 查询广告信息类型列表
export function listAdvertType(query) {
  return request({
    url: '/webshop/AdvertType/list',
    method: 'get',
    params: query
  })
}

// 查询广告信息类型详细
export function getAdvertType(advertTypeId) {
  return request({
    url: '/webshop/AdvertType/' + advertTypeId,
    method: 'get'
  })
}

// 新增广告信息类型
export function addAdvertType(data) {
  return request({
    url: '/webshop/AdvertType',
    method: 'post',
    data: data
  })
}

// 修改广告信息类型
export function updateAdvertType(data) {
  return request({
    url: '/webshop/AdvertType',
    method: 'put',
    data: data
  })
}

// 删除广告信息类型
export function delAdvertType(advertTypeId) {
  return request({
    url: '/webshop/AdvertType/' + advertTypeId,
    method: 'delete'
  })
}
